module.exports = {
	namespaced: true,
	state: {
		tabbar: null,
		height: 0
	},
	mutations: {
		setTabbar(state, obj) {
			state.tabbar = obj;
		},
		setTabbarHeight(state, h) {
			state.height = h;
		}
	},
	actions: {
		setTabbar({
			commit
		}, obj) {
			commit('setTabbar', obj);
		},
		setTabbarHeight({
			commit
		}, h) {
			commit('setTabbarHeight', h);
		}
	},
	getters: {
		tabbar(state) {
			return JSON.parse(JSON.stringify(state.tabbar));
		},
		height(state) {
			return state.height;
		}
	}
}
